<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>调用PCI BIOS - whowin - 发表我个人原创作品的技术博客</title>
  <meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">


<meta name="author" content="whowin" /><meta name="description" content="通过执行INT 1AH指令可以调用16位的PCI BIOS，也可以直接在物理寄存器位置000FFE6EH调用PCI BIOS。32位BIOS的调用要通过一个远程调用来实现。在这两种情况下，调用这都必须首先将需要的请求参数装入处理器的寄存器组。在入口AH寄存器必须包含PCI的功能ID：B1H，AL寄存器必须包含PCI下级功能识别器。
" /><meta name="keywords" content="linux, socket, hugo, dos" />






<meta name="generator" content="Hugo 0.97.3 with theme even" />


<link rel="canonical" href="https://whowin.gitee.io/post/blog/dos/0002-invoking-pci-bios/" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">



<link href="/sass/main.min.e3fea119b1980e848b03dffbeddb11dd0fba483eed0e5f11870fb8e31f145bbd.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">


<meta property="og:title" content="调用PCI BIOS" />
<meta property="og:description" content="通过执行INT 1AH指令可以调用16位的PCI BIOS，也可以直接在物理寄存器位置000FFE6EH调用PCI BIOS。32位BIOS的调用要通过一个远程调用来实现。在这两种情况下，调用这都必须首先将需要的请求参数装入处理器的寄存器组。在入口AH寄存器必须包含PCI的功能ID：B1H，AL寄存器必须包含PCI下级功能识别器。" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://whowin.gitee.io/post/blog/dos/0002-invoking-pci-bios/" /><meta property="article:section" content="post" />
<meta property="article:published_time" content="2008-03-18T15:10:28+08:00" />
<meta property="article:modified_time" content="2008-03-18T15:10:28+08:00" />

<meta itemprop="name" content="调用PCI BIOS">
<meta itemprop="description" content="通过执行INT 1AH指令可以调用16位的PCI BIOS，也可以直接在物理寄存器位置000FFE6EH调用PCI BIOS。32位BIOS的调用要通过一个远程调用来实现。在这两种情况下，调用这都必须首先将需要的请求参数装入处理器的寄存器组。在入口AH寄存器必须包含PCI的功能ID：B1H，AL寄存器必须包含PCI下级功能识别器。"><meta itemprop="datePublished" content="2008-03-18T15:10:28+08:00" />
<meta itemprop="dateModified" content="2008-03-18T15:10:28+08:00" />
<meta itemprop="wordCount" content="1968">
<meta itemprop="keywords" content="DOS,BIOS,PCI," /><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="调用PCI BIOS"/>
<meta name="twitter:description" content="通过执行INT 1AH指令可以调用16位的PCI BIOS，也可以直接在物理寄存器位置000FFE6EH调用PCI BIOS。32位BIOS的调用要通过一个远程调用来实现。在这两种情况下，调用这都必须首先将需要的请求参数装入处理器的寄存器组。在入口AH寄存器必须包含PCI的功能ID：B1H，AL寄存器必须包含PCI下级功能识别器。"/>

<!--[if lte IE 9]>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->

<!--[if lt IE 9]>
  <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->

  <script async src="/js/busuanzi.pure.mini.js"></script><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9724909319263152"
     crossorigin="anonymous"></script>


</head>
<body>
  <div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/" class="logo">WhoWin</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    <a href="/">
        <li class="mobile-menu-item">首页</li>
      </a><a href="/post/">
        <li class="mobile-menu-item">文章归档</li>
      </a><a href="/article-categories/categories/">
        <li class="mobile-menu-item">文章分类</li>
      </a><a href="/tags/">
        <li class="mobile-menu-item">文章标签</li>
      </a><a href="/about/about/">
        <li class="mobile-menu-item">关于</li>
      </a>
  </ul>

  


</nav>

  <div class="container" id="mobile-panel">
    <header id="header" class="header">
        <div class="logo-wrapper">
  <a href="/" class="logo">WhoWin</a>
  
  <div style="position:absolute; left: 80px; top: 75px; color: crimson">
      ———开源和分享是技术发展的源泉和动力；本博客所有文章均为原创
  </div>
</div>





<nav class="site-navbar">
  <ul id="menu" class="menu">
    <li class="menu-item">
        <a class="menu-item-link" href="/">首页</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/post/">文章归档</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/article-categories/categories/">文章分类</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/tags/">文章标签</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/about/about/">关于</a>
      </li>
  </ul>
</nav>

    </header>

    <main id="main" class="main">
      <div class="content-wrapper">
        <div id="content" class="content">
          <article class="post">
    
    <header class="post-header">
      <h1 class="post-title">调用PCI BIOS</h1>

      <div class="post-meta">
        <span class="post-time"> 2008-03-18 </span>
        <div class="post-category">
            <a href="/categories/dos/"> DOS </a>
            </div>
        
      </div>
    </header>

    <div class="post-toc" id="post-toc">
  <h2 class="post-toc-title">文章目录</h2>
  <div class="post-toc-content always-active">
    <nav id="TableOfContents">
  <ul>
    <li>
      <ul>
        <li><a href="#1pci-bios的存在性">1、PCI BIOS的存在性</a></li>
        <li><a href="#2pci设备检测">2、PCI设备检测</a></li>
        <li><a href="#3pci分类代码检测">3、PCI分类代码检测</a></li>
        <li><a href="#4特殊周期的产生">4、特殊周期的产生</a></li>
        <li><a href="#5读配置字节">5、读配置字节</a></li>
        <li><a href="#6读配置字">6、读配置字</a></li>
        <li><a href="#7读配置双字">7、读配置双字</a></li>
        <li><a href="#8写配置字节">8、写配置字节</a></li>
        <li><a href="#9写配置字">9、写配置字</a></li>
        <li><a href="#10写配置双字">10、写配置双字</a></li>
      </ul>
    </li>
  </ul>
</nav>
  </div>
</div>
    <div class="post-content">
      <p>通过执行INT 1AH指令可以调用16位的PCI BIOS，也可以直接在物理寄存器位置000FFE6EH调用PCI BIOS。32位BIOS的调用要通过一个远程调用来实现。在这两种情况下，调用这都必须首先将需要的请求参数装入处理器的寄存器组。在入口AH寄存器必须包含PCI的功能ID：B1H，AL寄存器必须包含PCI下级功能识别器。</p>
<h2 id="1pci-bios的存在性">1、PCI BIOS的存在性</h2>
<ul>
<li>
<p>入口参数：</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  AH=B1H
</span></span><span class="line"><span class="cl">  AL=01H
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>
<p>出口参数：</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  EDX：返回值为“PCI”。字符“P”存放在DL；字符“C”存放在DH；字符“I”存放在EL；EH中方一个空格符
</span></span><span class="line"><span class="cl">  AH：存在状态。如果EDX设置适当，则00H表示存在PCI BIOS。
</span></span><span class="line"><span class="cl">  AL：硬件机制
</span></span><span class="line"><span class="cl">  BL：接口版本
</span></span><span class="line"><span class="cl">  CL：系统中最后一个PCI局部中线的号码
</span></span><span class="line"><span class="cl">  CF：状态标志。为1表示没有PCI BIOS，为0表示存在PCI BIOS。
</span></span></code></pre></td></tr></table>
</div>
</div><blockquote>
<p>如果CF被清除且AH的内容为00H时，为了确定PCI功能设置的有效性，对EDX内容的检查仍然是必须的。BX进一步指出版本号，版本号以BCD码形式存在。如v2.10，BH将返回02H，BL将返回10H。</p>
</blockquote>
<blockquote>
<p>AL的返回值标识与访问配置空间和产生PCI特殊周期相关的支持平台的特定硬件字符。PCI规范为访问配置空间定义了两种硬件机制，AL返回值的位0与位1表示当前平台支持那种机制。位0等于1时支持1#机制，位1等于1时表示支持2#机制，位2、3、6、7是保留位，返回值必须是0。</p>
</blockquote>
<blockquote>
<p>PCI规范中也为特殊周期的产生定义了硬件机制，AL的返回值的位4、5两位指出机制类型。位4为1表示支持基于1#配置机制的特殊周期产生；位5为1表示支持基于2#配置机制的特殊周期产生。</p>
</blockquote>
<blockquote>
<p>CL的返回值表示系统中最后一个PCI局部总线的号码，PCI局部中线的号码从0开始，到CL中的返回值为止。</p>
</blockquote>
</li>
</ul>
<h2 id="2pci设备检测">2、PCI设备检测</h2>
<ul>
<li>
<p>入口参数：</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  AH=B1H
</span></span><span class="line"><span class="cl">  AL=02H
</span></span><span class="line"><span class="cl">  CX=设备识别号，从0~~65535
</span></span><span class="line"><span class="cl">  DX=供应商识别代码，从0~~65534
</span></span><span class="line"><span class="cl">  SI=索引号，0~~N
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>
<p>出口参数：</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  BH=总线号
</span></span><span class="line"><span class="cl">  BL=高5位为设备号，低3位为功能号
</span></span><span class="line"><span class="cl">  AH=返回3种不同的代码。00H表示检测成功，86H表示未发现要检测的设备，83H表示入口参数中的供应商代码无效
</span></span><span class="line"><span class="cl">  CF=状态标志。为1表示检测错误，为0表示检测成功。
</span></span></code></pre></td></tr></table>
</div>
</div><blockquote>
<p>如果在该功能调用中，使索引号从0开始以1为增量递增，直到AH中的返回码为86H为止，便可检测出供应商识别码与设备识别码相同的所有设备。</p>
</blockquote>
</li>
</ul>
<h2 id="3pci分类代码检测">3、PCI分类代码检测</h2>
<ul>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  AH=B1H
</span></span><span class="line"><span class="cl">  AL=03H
</span></span><span class="line"><span class="cl">  ECX=低三个字节为分类代码
</span></span><span class="line"><span class="cl">  SI=索引号，0~~N
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  BH=总线号，0~~255
</span></span><span class="line"><span class="cl">  BL=高5位为设备号，低3位为功能号
</span></span><span class="line"><span class="cl">  AH=00H表示检测成功，86H表示未发现要检测的设备
</span></span><span class="line"><span class="cl">  CF=1表示检测错误，0表示检测成功
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<blockquote>
<p>如果在该功能调用中，使索引号从1开始以1位增量递增，直到AH中的返回码为86H为止，便可检测出具有相同分类代码的所有设备。</p>
</blockquote>
<h2 id="4特殊周期的产生">4、特殊周期的产生</h2>
<ul>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  AH=B1H
</span></span><span class="line"><span class="cl">  AL=06H
</span></span><span class="line"><span class="cl">  BH=总线号，0~~255
</span></span><span class="line"><span class="cl">  EDX=特殊周期数据
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  AH=00H表示特殊周期产生成功，81H表示不支持该功能
</span></span><span class="line"><span class="cl">  CF=1表示错误，0表示成功
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<h2 id="5读配置字节">5、读配置字节</h2>
<ul>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  AX=B108H
</span></span><span class="line"><span class="cl">  BH=总线号，0~~255
</span></span><span class="line"><span class="cl">  BL=高5位为设备号，低3位为功能号
</span></span><span class="line"><span class="cl">  DI=寄存器号，0~~255
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  CL：读出的配置字节
</span></span><span class="line"><span class="cl">  AH=00H表示成功
</span></span><span class="line"><span class="cl">  CF=1表示错误，0表示成功
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<h2 id="6读配置字">6、读配置字</h2>
<ul>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  AX=B109H
</span></span><span class="line"><span class="cl">  BH=总线号，0~~255
</span></span><span class="line"><span class="cl">  BL=高5位为设备号，低3位为功能号
</span></span><span class="line"><span class="cl">  DI=寄存器号，取值为0、2、4、6、8
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  CX=读出的配置字
</span></span><span class="line"><span class="cl">  AH=00H表示成功，87H表示寄存器无效
</span></span><span class="line"><span class="cl">  CF=1表示错误，0表示成功
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<h2 id="7读配置双字">7、读配置双字</h2>
<ul>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  AX=B10AH
</span></span><span class="line"><span class="cl">  BH=总线号，0~~255
</span></span><span class="line"><span class="cl">  BL=高5位为设备号，低3位为功能号
</span></span><span class="line"><span class="cl">  DI=寄存器号，0、4、8、12
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  ECX=读出的配置双字
</span></span><span class="line"><span class="cl">  AH=00H表示成功，87H表示寄存器无效
</span></span><span class="line"><span class="cl">  CF=1表示错误，0表示成功
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<h2 id="8写配置字节">8、写配置字节</h2>
<ul>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  AX=B10BH
</span></span><span class="line"><span class="cl">  BH=总线号，0~~255
</span></span><span class="line"><span class="cl">  BL=高5位为设备号，低3位为功能号
</span></span><span class="line"><span class="cl">  DI=寄存器号，0~~255
</span></span><span class="line"><span class="cl">  CL=写入的字节值
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  AH=00H表示成功
</span></span><span class="line"><span class="cl">  CF=1表示错误，0表示成功
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<h2 id="9写配置字">9、写配置字</h2>
<ul>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  AX=B10CH
</span></span><span class="line"><span class="cl">  BH=总线号，0~~255
</span></span><span class="line"><span class="cl">  BL=高5位为设备号，低3位为功能号
</span></span><span class="line"><span class="cl">  DI=寄存器号，0、2、4、6
</span></span><span class="line"><span class="cl">  CX=写入字的值
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  AH=00H表示成功，87H表示寄存器无效
</span></span><span class="line"><span class="cl">  CF=1表示错误，0表示成功
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<h2 id="10写配置双字">10、写配置双字</h2>
<ul>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  AX=B10DH
</span></span><span class="line"><span class="cl">  BH=总线号，0~~255
</span></span><span class="line"><span class="cl">  BL=高5位为设备号，低3位为功能号
</span></span><span class="line"><span class="cl">  DI=寄存器号，0、4、8、12
</span></span><span class="line"><span class="cl">  ECX=写入双字的值
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">  AH=00H表示成功，87H表示寄存器无效
</span></span><span class="line"><span class="cl">  CF=1表示错误，0表示成功
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<hr>
<p><strong>欢迎访问我的博客：https://whowin.cn</strong></p>
<p><strong>email: <a href="mailto:hengch@163.com">hengch@163.com</a></strong></p>
<p><img src="https://whowin.gitee.io/images/qrcode/sponsor-qrcode.png" alt="donation"></p>
    </div>

    <div class="post-copyright">
  <p class="copyright-item">
    <span class="item-title">文章作者</span>
    <span class="item-content">whowin</span>
  </p>
  <p class="copyright-item">
    <span class="item-title">上次更新</span>
    <span class="item-content">
        2008-03-18
        
    </span>
  </p>
  
  
</div>
<footer class="post-footer">
      <div class="post-tags">
          <a href="/tags/dos/">DOS</a>
          <a href="/tags/bios/">BIOS</a>
          <a href="/tags/pci/">PCI</a>
          </div>
      <nav class="post-nav">
        <a class="prev" href="/post/blog/dos/0003-djgpp-installation/">
            <i class="iconfont icon-left"></i>
            <span class="prev-text nav-default">在 DOS 下安装 DJGPP</span>
            <span class="prev-text nav-mobile">上一篇</span>
          </a>
        <a class="next" href="/post/blog/dos/0001-32bit-bios-introduction/">
            <span class="next-text nav-default">32位 BIOS 说明</span>
            <span class="next-text nav-mobile">下一篇</span>
            <i class="iconfont icon-right"></i>
          </a>
      </nav>
    </footer>
  </article>
        </div>
        

  <span id="/post/blog/dos/0002-invoking-pci-bios/" class="leancloud_visitors" data-flag-title="调用PCI BIOS">
		<span class="post-meta-item-text">文章阅读量 </span>
		<span class="leancloud-visitors-count">0</span>
		<p></p>
	  </span>
  <div id="vcomments"></div>
  <script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
  <script src='//unpkg.com/valine/dist/Valine.min.js'></script>
  <script type="text/javascript">
    new Valine({
        el: '#vcomments' ,
        appId: 'OFCGzCfJRUglzOdzrqMGkbTR-gzGzoHsz',
        appKey: 'v7P29kPAEbsmaavaYPNhGhnF',
        notify:  false ,
        verify:  false ,
        avatar:'mm',
        placeholder: '说点什么吧...',
        visitor:  true 
    });
  </script>

  

      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="social-links">
      <a href="mailto:hengch@163.com" class="iconfont icon-email" title="email"></a>
  <a href="https://whowin.gitee.io/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>
<div class="copyright">
  <span class="power-by">
    由 <a class="hexo-link" href="https://gohugo.io">Hugo</a> 强力驱动
  </span>
  <span class="division">|</span>
  <span class="theme-info">
    主题 - 
    <a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a>
  </span>

  <div class="busuanzi-footer">
    <span id="busuanzi_container_site_pv"> 本站总访问量 <span id="busuanzi_value_site_pv"><img src="/img/spinner.svg" alt="spinner.svg"/></span> 次 </span>
      <span class="division">|</span>
    <span id="busuanzi_container_site_uv"> 本站总访客数 <span id="busuanzi_value_site_uv"><img src="/img/spinner.svg" alt="spinner.svg"/></span> 人 </span>
  </div>

  <span class="copyright-year">
    &copy; 
    2022 - 
    2024<span class="heart"><i class="iconfont icon-heart"></i></span><span>whowin</span>
  </span>
</div>

    </footer>

    <div class="back-to-top" id="back-to-top">
      <i class="iconfont icon-up"></i>
    </div>
  </div>
  
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>



<script type="text/javascript" src="/js/main.min.64437849d125a2d603b3e71d6de5225d641a32d17168a58106e0b61852079683.js"></script>
  <script type="text/javascript">
    window.MathJax = {
      tex: {
        inlineMath: [['$','$'], ['\\(','\\)']],
        }
    };
  </script>
  <script async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.5/es5/tex-mml-chtml.js" integrity="sha256-HGLuEfFcsUJGhvB8cQ8nr0gai9EucOOaIxFw7qxmd+w=" crossorigin="anonymous"></script>








</body>
</html>
